<form action="{:url()}" method="post" class="form_single">
    <div class="box">
        <div class="box-body">
            <div class="row">
                <div class="col-md-6">
                    <div class="form-group">
                        <label>项目名称</label>
                        <span class=""></span>
                        <input class="form-control" name="pro_name" placeholder="请输入项目名称" value="{$info['pro_name']|default=''}" type="text">
                    </div>
                </div>



                <div class="col-md-6">
                    <div class="form-group">
                        <label>描述</label>
                        <span class="">（项目描述信息/简介）</span>
                        <textarea class="form-control" name="pro_descrit" rows="3" placeholder="请输入项目描述信息/简介">{$info['pro_descrit']|default=''}</textarea>
                    </div>
                </div>

                <div class="col-md-6">
                    <div class="form-group">
                        <label>封面图片</label>
                        <span class="">（建议上传 480×340 的图片）</span>
                        <br/>
                        {assign name="pro_img" value="$info.pro_img|default='0'" /}
                        {:widget('file/index', ['name' => 'pro_img', 'value' => $pro_img, 'type' => 'img'])}
                    </div>
                </div>
                
                <div class="col-md-6">
                    <div class="form-group">
                        <label>是否推荐至首页</label>
                        <span>（若是则在首页显示）</span>
                        <div>
                            <label class="margin-r-5"><input type="radio" name="is_index" value="1"> 是</label>
                            <label><input type="radio" name="is_index"  value="0"> 否</label>
                        </div>
                    </div>
                </div>

            </div>
            <div class="row">

                <div class="col-md-6">
                    <div class="form-group">
                        <label>项目链接</label>
                        <span class=""></span>
                        <input class="form-control" name="pro_url" placeholder="请输入项目链接" value="{$info['pro_url']|default=''}" type="text">
                    </div>
                </div>



            </div>

            <div class="box-footer">

                <input type="hidden" name="id" value="{$info['id']|default='0'}"/>

                {include file="layout/edit_btn_group"/}

            </div>

        </div>
    </div>
</form>
<script type="text/javascript">
    
   ob.setValue("is_index", {$info.is_index|default=0});
       
</script>